//
// Created by yyancy on 2020/4/18.
//

#ifndef CPP_EXERCISES_CD_H
#define CPP_EXERCISES_CD_H


class Cd {
protected:
    char performers[50];
    char label[20];
    int selections; // number of selections
    double playtime; //playing time in minutes
public:
    Cd(const char *s1, const char *s2, int n, double x);

    Cd(const Cd &d);

    Cd() : performers{0}, label{0}, selections{0}, playtime{0} {}

    ~Cd() = default;

    virtual void report() const; // reports all CD data
    Cd &operator=(const Cd &cd);

//    virtual void play();

};


class Classic : public Cd {
private:
    char name[40];
public:
    Classic(const char *s1, const char *s2, const char *s3, int i, double d);

    Classic();

    Classic &operator=(const Classic &classic);

    void report() const;

    void play();
};

#endif //CPP_EXERCISES_CD_H
